from sklearn.metrics import confusion_matrix
y_true = [0, 0, 0, 1, 1, 1, 1, 1]
y_pred = [0, 1, 0, 1, 0, 1, 0, 1]
tn, fp, fn, tp = confusion_matrix(y_true, y_pred).ravel()


import matplotlib.pyplot as plt
import numpy as np
w = 4
h = 3
d = 70
plt.figure(figsize=(w, h), dpi=d)
x = [0, 2, 5]
y1 = [1, 2.5, 3]
y2 = [2, 3, 4.5]

plt.fill_between(x, y1, y2)
plt.show()
plt.savefig("out.png")

